import request from '@/utils/request'

// 查询论坛-点赞列表
export function listZan(query) {
  return request({
    url: '/forum/zan/list',
    method: 'get',
    params: query
  })
}

// 查询论坛-点赞详细
export function getZan(dynamicId) {
  return request({
    url: '/forum/zan/' + dynamicId,
    method: 'get'
  })
}

// 新增论坛-点赞
export function addZan(data) {
  return request({
    url: '/forum/zan',
    method: 'post',
    data: data
  })
}

// 修改论坛-点赞
export function updateZan(data) {
  return request({
    url: '/forum/zan',
    method: 'put',
    data: data
  })
}

// 删除论坛-点赞
export function delZan(dynamicId) {
  return request({
    url: '/forum/zan/' + dynamicId,
    method: 'delete'
  })
}

// 导出论坛-点赞
export function exportZan(query) {
  return request({
    url: '/forum/zan/export',
    method: 'get',
    params: query
  })
}